Forecasting digital reservoir controller

ABSTRACT

A digital controller controls discharges of a utility from a reservoir to a plant during a first time period and recharges of said utility from the plant back to the reservoir during a second time period. The reservoir can be any storage device. When the utility is electric power, the discharges make up for the power not generated by the plant due to an accident. The digital controller may use a balanced nonlinear transfer function to control the recharges based on the discharges. If there is a long duration discharge that extends beyond the end of the first time period, the digital controller may use a Monte Carlo simulation along with a tail distribution for the long duration discharge and the balanced transfer function to forecast the recharge required during the second time period.

COPYRIGHT AND TRADEMARK NOTICE

A portion of the disclosure of this patent document contains material to which a claim for copyright is made. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but reserves all other copyright rights whatsoever.

FIELD OF THE INVENTION

Embodiments of the present invention relate to forecasting digital controllers for reservoirs.

BACKGROUND OF THE INVENTION

Utility grids, such as electrical power grids, might have one or more generating plants that produce said utility for discharge by said grids. Said generating plants, however, may be subject to random adverse events that affect their ability to produce a demanded amount of said utility. Some utility grids have reservoirs for storing said utility for discharge to the plants to make up for the adverse events. These discharges of a utility from a reservoir to a plant due to random adverse events are referred to herein as “discharges”. The discharges from a reservoir to one of the plants might occur during a first time period. In order to make up for the discharges during a first time period, the plants connected to the reservoir by the grid may be required to make recharges of the utility to the reservoir during a subsequent second time period. These recharges are referred to herein as “recharges”. A technical problem to be solved, therefore, is controlling the recharges from the plants to the reservoir during the second time period so that in aggregate they make up for the discharges from the reservoir to the plants during the first time period.

One method controlling the recharges from each plant is to set them equal to the discharges from each plant. This is a problem, however, when the discharges are a small number of relatively large discharges such that any individual plant's discharge during a first time period would exceed said plant's ability to provide an equally large recharge during a second time period. Thus, a further technical problem to be solved is how to control the recharges from each of the plants connected to the reservoir by the grid so that in aggregate they make up for discharges that are large rare events.

Occasionally a discharge may initiate during a first time period but extend beyond the end of the first time period. These are referred to herein as long duration discharges. A further technical problem to be solved is determining how big a recharge should be for a second time period when a discharge has extended beyond the end of the first time period.

SUMMARY OF THE INVENTION

The summary of the invention is provided as a guide to understanding the invention. It does not necessarily describe the most generic embodiment of the invention or the broadest range of alternative embodiments.

FIG. 1 is a schematic of a utility grid system 100. The system comprises a utility grid 102 for transmitting a utility from one or more plants 104, 106, 108, 112, 114, 116, and 118 to consumers of said utility (not shown), and a reservoir of said utility 184. As used herein, a “utility” is any commodity that can be transmitted and stored. Utilities can include electric power, water, computer processor time, computer memory, food commodities (e.g. grain) and monetary funds (e.g. fiat currencies, private currencies, and/or block chain currencies). Transmission can be by physical transfer, such as water flow through a pipe. Transmission can also be by virtual allocation such as transferring assignment of a given computer memory capacity in a distributed computing system from a reservoir to a particular plant. Transfer of financial instruments, such as commodity futures, can be considered a type of virtual allocation of said commodity. A reservoir may physically store a utility, such as a battery storing electric power. A reservoir may also virtually store a utility, such as by depositing monetary funds in a monetary reserve where it can be used to purchase the utility at a future time. The reservoir may be subject to leakage of the utility, such as when a battery has internal leakage currents that dissipate its stored electric power. The grid may have losses, such as power loss in transmission. Thus, the recharges may have a certain minimum requirement to make up for said leakage and losses.

The grid 102 may comprise a digital controller 182. The digital controller may control discharges (e.g. item 174) of the utility from the reservoir to at least one of the plants (e.g. item 104) during a first time period. The discharges of said utility from said reservoir to said plant may be in response to random adverse events that either increase the demand of said utility from said plant or reduce the capacity of said plant to produce said utility. The random adverse events may include any event that can be described by a probability distribution and is not in direct control of the plant. Examples include any insurable risk, such as one or more of:

-   -   i) a loss of electric power capacity due to wind damage to said         plant;     -   ii) an increase in water demand from said plant due to drought;         or     -   iii) a loss of labor due to an on-the-job injury of one of the         workers in said plant.         The discharges from said reservoir to said plant may be one or         more of:     -   i) sufficient electric power to make up for said lost electric         power capacity;     -   ii) sufficient water to make up for said increase in water         demand; or     -   iii) sufficient monetary funds to make up for the medical costs         and lost time costs of said injured worker.

The digital controller may also or alternatively control recharges (e.g. item 172) of said utility from said plant to said reservoir during a second time period. Said second time period may occur after said first time period. The recharges will be controlled as a function of the discharges.

The digital controller may comprise:

-   -   i) an input device 171 for receiving input from a user;     -   ii) an output device, which may comprise a screen 173, for         presenting output to said user;     -   iii) a sensor 175 (represented by the indicated arrowhead) for         receiving data about said discharges from said reservoir to said         plant;     -   iv) an output device 177 (represented by the indicated arrow         head) for controlling said recharges from said plant to said         reservoir;     -   v) a microprocessor for processing data; and     -   vi) a permanent memory comprising computer readable instructions         to cause said microprocessor to physically carry out the steps         required to control the recharges as a function of the         discharges.

The sensor may comprise a physical sensor, such as an electric power meter or a water meter. It may also comprise a device for receiving data from a human. This may include one or more of:

-   -   a) an optical scanner;     -   b) a keyboard;     -   c) a touch screen; or     -   d) a voice recognition system.         For example, a human might read an electric meter and input the         result into the controller using a keyboard or a touch screen.         Similarly, a human might receive a written report of the costs         of medical treatment for an injured worker and input the costs         into the controller using an optical scanner with optical         character recognition.

The output device may comprise a physical device, such as a switch for controlling the flow of electric power, a valve for controlling water flow; or a monetary transfer system for automated funds transfer. It may also comprise a device for communicating with a human. The device for communicating with a human may comprise one or more of:

-   -   a) a screen;     -   b) a printer; or     -   c) a synthesized voice.         For example, the controller may call a plant operator on the         plant operator's cell phone and instruct the operator to         transfer a recharge of electrical energy from the plant to the         reservoir (e.g. a battery). Similarly, the controller may         provide output on a screen or a printer instructing a plant         operator to transfer monetary funds to a monetary reserve.

FIGS. 5A to 5C show a flow chart of the steps required to control the recharges as a function of the discharges. These steps are:

-   -   (1) read 502 in from said user, exogenous data describing an         exposure of a plant wherein said exposure of said plant is an         estimate of the expected total discharges from a reservoir to         said plant over a standard time period;     -   (2) determine 504 an exposure size class of said plant using         said exogenous data wherein said exposure size class spans a         range of exposures;     -   (3) read in 506 from a distribution database, a normalized         distribution of normalized discharges from one or more reference         reservoirs to a plurality of reference plants over said standard         time period, wherein:         -   (a) said reference plants are connected to said reference             reservoirs by one or more reference grids;         -   (b) said reference plants are all in said exposure size             class of said plant; and         -   (c) said normalized discharges from said one or more             reference reservoirs to said reference plants are equal to             measured reference discharges from said one or more             reference reservoirs to each of said reference plants             divided by the corresponding exposures of each of said             reference plants;     -   (4) select 508 a base function describing a relationship between         normalized recharges from said plant to said reservoir over a         second time period, versus normalized discharges from said         reservoir to said plant over a first time period wherein:         -   (a) said normalized recharges are equal to recharges from             said plant to said reservoir over said second time period             divided by said exposure of said plant;         -   (b) said normalized discharges are equal to discharges from             said reservoir to said plant over said first time period             divided by said exposure of said plant;         -   (c) said first time period has the same duration as said             standard time period;         -   (d) said second time period has the same duration as said             standard time period; and         -   (e) said second time period occurs after said first time             period;     -   (5) select 510 a trim function describing a relationship between         said normalized recharges from said plant to said reservoir over         said second time period, versus said normalized discharges from         said reservoir to said plant over said first time period;     -   (6) determine 512 a transfer function equal to said base         function plus a scaled trim function wherein said scaled trim         function is equal to said trim function times a trim multiplier;     -   (7) balance 514 said transfer function by selecting said trim         multiplier such that the integral of the product of said         transfer function and said normalized distribution of normalized         discharges is about 1 when said integral is performed over a         range of normalized discharges that might be experienced by said         plant during said first time period;     -   (8) display 516 on a screen to said user, said balanced transfer         function as either a graph or a table of recharges from said         plant to said reservoir over said second time period, versus         measured discharges from said reservoir to said plant during         said first time period;     -   (9) accept 518 from said user, input to modify said transfer         function by modifying either said base function or said trim         function;     -   (10) balance 520 said modified transfer function by adjusting         said trim multiplier;     -   (11) display 522 on said screen said balanced modified transfer         function;     -   (12) accept 524 from said user, input on whether or not said         user is done modifying said transfer function;     -   (13) when said user is not done 521 modifying said transfer         function, re-execute said steps of:         -   (a) accept 518 from said user, input to modify said transfer             function by modifying either said base function or said trim             function;         -   (b) balance 520 said modified transfer function by adjusting             said trim multiplier;         -   (c) display 522 on said screen said balanced modified             transfer function; and         -   (d) accept 524 from said user, input on whether or not said             user is done modifying said transfer function;     -   (14) when said user is done 523 modifying said transfer         function, receive 526 via a sensor a measured quantity of         discharges from said reservoir to said plant occurring during         said first time period;     -   (15) determine 528 using said transfer function, a quantity of         recharges from said plant to said reservoir during said second         time period; and     -   (16) instruct 530 said plant to provide said quantity of         recharges from said plant to said reservoir during said second         time period.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic of a utility grid system.

FIG. 2 is a graph of a controller transfer function output on a screen.

FIG. 3 is a graph of a transfer function composed of a base function and a trim function output on a screen.

FIG. 4 is a graph of a balanced transfer function with extended slope base function output on a screen.

FIGS. 5A to 5C are a flow chart of the steps a controller may execute to determine a balanced transfer function, adjust said balanced transfer function, and control the recharges from a plant to a reservoir during a second time period.

FIG. 6 is a graph of a long duration discharge tail distribution.

DETAILED DESCRIPTION

The detailed description describes non-limiting exemplary embodiments. Any individual features may be combined with other features as required by different applications for at least the benefits described herein.

As used herein, the term “about” means plus or minus 10% of a given value unless specifically indicated otherwise.

As used herein, a computer-based system, such as a digital controller, comprises an input device for receiving data, an output device for outputting data in tangible form (e.g. printing or displaying on a computer screen), a permanent memory for storing data as well as computer code, and a microprocessor for executing computer code wherein said computer code resident in said permanent memory will physically cause said microprocessor to read-in data via said input device, process said data and output said processed data via said output device.

As used herein, the term “shaped” means that an item has the overall appearance of a given shape even if there are minor variations from the pure form of said given shape.

As used herein, the term “generally” when referring to a shape means that an ordinary observer will perceive that an object has said shape even if there are minor variations from said shape.

As used herein, relative orientation terms, such as “up”, “down”, “top”, “bottom”, “left”, “right”, “vertical”, “horizontal”, “distal” and “proximal” are defined with respect to an initial presentation of an object and will continue to refer to the same portion of an object even if the object is subsequently presented with an alternative orientation, unless otherwise noted.

Reference Grids for Determining a Normalized Distribution of Normalized Discharges

Referring to FIG. 1, the utility grid system 100 may comprise one or more reference grids 122, 142. These are used to determine a normalized distribution of normalized discharges of a utility from a reservoir to a plant in a given exposure size class over a standard time period. Each reference grid may connect one or more reference plants 124, 126, 128, 132, 134, 136, 138, 144, 146, 148, 152, 154, 156, and 158 to corresponding reference reservoirs 194, 198. Reference discharges (e.g. item 185) from the reference reservoirs to the reference plants during a first time period may be controlled by one or more reference digital controllers 192, 196. Reference recharges (e.g. item 183) from the reference plants to the reference reservoirs during a second time period may also or alternatively be controlled by the one or more reference digital controllers. The first and second time periods may have durations that are the same as the standard time period.

The different reference plants may have different exposures to adverse events that would impact their ability to provide a utility to a grid at a required demand. For example, a solar electric power array might have an exposure to wind damage. The level of exposure might be a function of the solar panel design, its geographic location, how well maintained the array is and the total area of solar panels. These are all exogenous variables. The exogenous variables can be used to develop a model of the expected average discharges that might be required during a standard time period. The model can be built by measuring discharges from a plurality of solar arrays over a plurality of standard time periods to develop a correlation between the exogenous variables and the expected average discharges over said standard time periods. The expected average discharges over a standard time period is referred to herein as the “exposure” of a plant. This is analogous to the term “exposure” as it is used in the insurance industry to indicate the expected average total value of the claims (i.e. the discharges) of an insured (i.e. the plant) against an insurer's reserves (i.e. the reservoir) during the term of the insured's insurance coverage (i.e. the standard time period). The recharges are analogous to insurance premiums. The digital controller is analogous to the insurer's computer systems which execute the insurer's functions (e.g. payment of claims).

Once the different exposures of the reference plants are determined, the reference plants may be categorized into different exposure size classes. The exposure size classes each span a range of exposures. The sizes of the rectangles representing the plants in FIG. 1 indicate said plants' exposure sizes. FIG. 1 shows that both the plants and the reference plants have been categorized into three size classes. The size classes are large exposure 162, medium exposure 164 and small exposure 166.

Any number of exposure size classes may be used. The size ranges for each exposure size class should be large enough so that there are enough reference plants in each size class to get an adequate distribution of discharges for each size class. A suitable minimum number of reference plants in a given size class might be 100. To build the distribution of discharges, the reference discharges for the reference plants are divided by the exposure of each reference plant to give normalized discharges. These normalized discharges are sorted based on value (e.g. low to high) to give a cumulative distribution function of discharges. The cumulative distribution function of discharges, in turn, can be used to calculate a normalized distribution of normalized discharges for the given exposure size class. The normalized distribution of normalized discharges may be stored in a digital permanent memory as a set of equally spaced points with a discharge increment between each point. This storage format provides improvements in computer functionality when calculating recharges. Discharge data from the plants (e.g. item 104) via the grid 102 to the reservoir 184 can also be contributed to the data from the reference plants to build the normalized distribution of normalized discharges. An exemplary normalized distribution of discharges is shown at item 206 in FIG. 2.

Meta-Controllers and Sub-Controllers

Referring again to FIG. 1, the grid 102 and reference grids 122, 142 may be connected by a larger meta-grid 179 to a meta-reservoir 188. A meta-controller 186 may control meta-discharges 178 of said utility from said meta-reservoir to said reservoirs due to adverse events occurring to said grids during a first time period. The meta-controller may also control meta-recharges 176 from the reservoirs to the meta-reservoir during a second time period. This is analogous to reinsurance where the meta-controller corresponds to the computer systems of a reinsurer, the meta-reservoir corresponds to a reinsurer's monetary reserves, the meta-discharges correspond to reinsurance claims and the meta-recharges correspond to reinsurance premiums.

A plant itself may have its own internal sub-plants 101, 103, and 105. A wind farm, for example, may have a plurality of individual wind mill generators. Each wind mill generator would be considered a sub-plant. The sub-plants may be connected to a sub-reservoir 109 by a sub-grid 125. A sub-reservoir, for example, might be a battery backup connected to the plurality of individual wind generators. A sub-controller 107 may control sub-discharges 123 of the utility from the sub-reservoir to the individual sub-plants due to adverse events affecting said individual sub-plants during a first time period. The sub-controller may also or alternatively control sub-recharges 121 from all of the sub-plants to the sub-reservoir during a second time period. This is analogous to self insurance.

Multiple meta-grids may be connected by a meta-meta-grid to a meta-meta-reservoir. Similarly, a sub-plant may comprise sub-sub-plants which are connected by sub-sub-grids to a sub-sub-reservoir. Thus, the control systems described herein may be applied recursively at any meta level or sub level of plants, grids and reservoirs.

Controller Transfer Function

One of the technical challenges in implementing a digital controller is determining an appropriate transfer function for the controller that relates the normalized discharges from a reservoir to a plant during a first time period to the normalized recharges from said plant back to said reservoir during a second time period. There are three practical considerations that should be met by the transfer function. These considerations are:

-   -   1. The combined recharges from all of the plants to the         reservoir is set equal to or greater than the combined exposures         of the plants: One of the practical considerations to be met by         the transfer function is that the combined recharges from all of         the plants to the reservoir during a second time period should         make up for all of the discharges of the first time period. On         average, this requirement can be met if the combined recharges         are set equal to or greater than the combined exposures of all         of the plants. This will normally be adequate as long as the         discharges for the different plants in a grid are independent of         each other and as long as there are a large number of plants         (e.g. 100 or more). There are situations, however, where the         discharges are correlated with each other and not independent.         This can occur, for example, when all of the plants are in a         given geographic area and that geographic area suffers a common         adverse event, such as a hurricane. The potential correlation of         discharges gives rise to the need for meta-grids and         meta-reservoirs. Nonetheless, there is substantial utility to         the controller if this first consideration is met.     -   2. The recharges required from each plant are capped: Another         practical condition to be met is that the recharges from a given         plant to a reservoir during a second time period is capped to a         practical value. This helps make sure that any single plant's         recharges will not exceed said plant's realistic ability to         provide said recharges. Otherwise said plant might not have         enough physical capacity to meet both the demands of its         customers and provide the recharges to the reservoir required by         the controller.     -   3. The transfer function always increases or stays the same:         Another practical consideration to be met is that the recharges         determined by the transfer function always increase or stay the         same in response to increasing discharges. A plant's expected         discharges may be affected to a certain extent by factors under         the control of the plant. If the required recharges during a         second time period increase with increasing discharges during a         first time period, then the employees and management of the         plant will be motivated to take actions that reduce the plant's         susceptibility to adverse events. These actions might include         better safety equipment for plant employees so that they are         less likely to suffer injuries. If, on the other hand, the         transfer function decreases with increasing discharges, then the         employees or management could theoretically be motivated to take         actions or delay actions that result in the plant experiencing         more discharges. For example, maintenance might be delayed which         would make the plant more vulnerable to breakdowns. Features in         the transfer function that motivate actions or inactions that         lead to more discharges are termed “moral hazards” and should be         avoided.

Exemplary Transfer Functions

FIG. 2 is a graph 200 of a controller transfer function 204 displayed on a screen 202 to a user. The graph shows the transfer function as a relationship between normalized recharges from a plant to a reservoir during a second time period (1^(st) Y axis 203), versus normalized discharges from said reservoir to said plant during a first time period (X axis 205). FIG. 2 also shows a graph 206 of a normalized probability density function (PDF) of normalized discharges for plants in a given size class. The Y values of said graph of said PDF are indicated on the 2^(nd) Y axis 201.

The transfer function 204 comprises:

-   -   a) a first vertex 212 followed by a first linear section 214         with a first positive slope; and     -   b) a second vertex 216 followed by a second linear section 218         with about a zero slope wherein said second vertex connects said         first linear section to said second linear section.

In this example, the first vertex is at the origin and the first slope is equal to 1. The second vertex has an X value equal to a threshold discharge 224. The threshold discharge in this example is about 1.3. Since the slope of the first linear section is 1, the maximum normalized recharge to the reservoir 222 is about 1.3 as well. Thus, this transfer function meets practical considerations #2 (capped recharge) and #3 (always increases or stays the same). This transfer function does not, however, meet practical consideration #1 (recharges equal to the combined exposures of the plants). The reason that practical consideration #1 is not met is that the slope of the 1st linear section 214 is about 1 and the transfer function 204 is capped 222. Plants with normalized discharges below the threshold discharge will only provide recharges equal to their discharges. There will be no excess recharges to make up for the plants with discharges above the threshold discharge since their recharges are capped. The reservoir will gradually drain over consecutive time periods. In order to meet practical consideration #1, therefore, the transfer function must be modified to provide additional normalized recharges from the plants that have normalized discharges below the threshold discharge.

Balanced Transfer Function

One method to modify the transfer function so that practical consideration #1 is met, is to create a modified transfer function for each exposure size class so that increased recharges are required from plants that have discharges below the threshold discharge. This condition will be met if equation 1 below is satisfied. ∫_(x) _(min) ^(x) ^(max) T _(m)(x,p)PDF _(m)(x)dx≅1  (1) where:

-   -   x is normalized discharges for a first time period;     -   x_(min) is a minimum x in a range of x;     -   x_(max) is a maximum x in said range of x;     -   p is a set of one or more parameters of the transfer function         T_(m)(x,p);     -   T_(m)(x,p) is the transfer function for a given exposure size         class m as a function of x and p; and     -   PDF_(m)(x) is the normalized probability distribution function         of normalized discharges for plants in a given exposure size         class m. The discharges are normalized over x.         For each exposure size class m, the parameters p of the transfer         function can be adjusted subject to the condition that the         integral of equation 1 is equal to about 1. A transfer function         that meets this criterion is referred to herein as being         “balanced”. If the transfer functions of all exposure size         classes are balanced, then practical consideration #1 will be         met for the grid as a whole.

x_(min) and x_(max) are selected to capture all expected values of the normalized discharges for the plants in each exposure size class. For example, x_(min) may be set to 0 and x_(max) may be set to 10. In effect, this says that the probability of any discharge exceeding the average discharges for all of the plants in a given size class by more than a factor of 10 is so small that it can be ignored. This is an important consideration when the PDF_(m)(x) is built on a finite number of observed values such that a stray but very large observed value incorporated into the PDF_(m)(x) could shift the integral of equation 1 to a higher value than it should be.

Equation 1 can be expressed verbally as:

-   -   A transfer function is balanced when the integral (e.g. ∫dx) of         the product of said transfer function (e.g. T_(m)(x,p)) and the         normalized distribution of normalized discharges (e.g.         PDF_(m)(x)) is about 1 when said integral is performed over a         range (e.g. x_(min) to x_(max)) of normalized discharges that         might be experienced by said plant during a first time period.

The transfer function 204 could be balanced by adjusting the parameters of the first vertex 212 and/or the slope of the first linear section 214. If the Y value of the first vertex were increased, for example, the normalized recharges collected from plants with normalized discharges below the threshold discharge would increase. This would make up for the missing recharges from the plants with normalized discharges above the threshold discharge. A balanced transfer function 211 is shown where the Y value of the 1^(st) vertex was set as a parameter p in equation 1 and adjusted until the integral had a value of about 1.

Developing a PDF_(m)(x) for Each Exposure Size Class m

The missing normalized recharges from plants with normalized discharges above the threshold discharge are defined herein as the “missing normalized recharges” or MNR. Sets of (x_(i), MNR_(i)) for reference plants in given size class m can be generated by the steps of:

-   -   collect normalized reference discharge data, r_(j), from a set         of n reference plants in exposure size class m;     -   define a set of discrete, equally spaced values of normalized         discharges, x_(i), with a discharge increment Δx between each         x_(i);     -   sum the values of (r_(j)−x_(i)) when r_(j)≥x_(i);     -   divide the sum by n to get an MNR_(i) for each x_(i); and     -   store the set of (x_(i), MNR_(i)) values in a permanent memory         for later retrieval and use by the digital controller.

These steps can be expressed as equation 2 below.

$\begin{matrix} {{MNR}_{i} = \frac{\sum{{if}\left( {\left( {r_{j} \geq x_{i}} \right),\left( {r_{j} - x_{i}} \right),0} \right)}}{n}} & (2) \end{matrix}$ where:

-   -   r_(j) is the sum of normalized reference discharges (e. g. item         185 FIG. 1) of reference plant j over a first time period;     -   n is the number of reference plants in said exposure size class         m;     -   x_(i) is the i^(th) member of said set of equally spaced values         of normalized discharges;     -   MNR_(i) is the missing normalized recharge for x_(i); and     -   “if(a,b,c)” means if a is true then b else c.         In the field of retrospective rating for workers' compensation         insurance, MNR_(i) corresponds to an “insurance charge” in a         “Table M” compiled by the National Council on Compensation         Insurers. x_(i) corresponds to an “entry ratio” in said Table M.         An exposure size class m corresponds to an “expected ultimate         loss group” or EULG in said Table M. Methods of constructing         Table M are described in more detail in the study note Brosius,         Eric J, “Table M Construction”, Casualty Actuarial Society         (study note), 2002. Said study note is incorporated herein by         reference with specific reference to the computational methods         of constructing Table M recited therein. Said computational         methods may be applied to the technical problem herein of         constructing sets of (x_(i), MNR_(i)) from data sets of r_(j)         collected from sets of reference plants in a given exposure size         class m.

One of the practical advantages of constructing a set of (x_(i), MNR_(i)) values is that it is computationally efficient for said digital controller to calculate a set of (x_(i), PDF_(i)) from said set of (x_(i), MNR_(i)). Equation 3 below can be used for said computationally efficient calculation.

$\begin{matrix} {{PDF}_{i} = \frac{\left( {{MNR}_{i} - {2{MNR}_{i}} + {MNR}_{i}} \right)}{\Delta\; x^{2}}} & (3) \end{matrix}$ where:

-   -   i is an index number;     -   MNR_(i) is the value of MNR associated with x_(i);     -   Δx is the spacing between adjacent x_(i);     -   x_(i) is the i^(th) value of x; and     -   PDF_(i) is the i^(th) value of the normalized distribution of         normalized discharges.         The normalized distribution of normalized discharges 206 shown         in FIG. 2 was constructed using Table M values as a model. Δx         was set to 0.1. Δx is labeled in FIG. 2 as the “discharge         increment” 234. Each value of (x_(i), PDF_(i)) is shown as a         circle (e.g. item 232). The lines (e.g. item 233) connecting the         circles are shown simply to help the user visualize the         distribution. Only the circle values are used in computation.         Hence the computation is efficient since values along the         connecting lines do not have to be calculated.

The lower bulk 236 of the distribution of discharges is shown below the threshold discharge 224. The upper tail 238 of the distribution of discharges is shown above the threshold discharge.

Computationally Efficient Balancing of the Transfer Function

An improvement in performance of the digital controller for solving equation 1 can be achieved by using the data set of (x_(i),PDF_(i)) constructed from the data set of measured (x_(i), MNC_(i)). The integral for balancing the transfer function (equation 1) can be computed efficiently by finding the values of the parameter(s) p that satisfy the summation operation as indicated in equation 4 below.

$\begin{matrix} {{\sum\limits_{i = a}^{b}{{T_{m}\left( {x_{i},p} \right)}{PDF}_{({m,i})}\Delta\; x}} \cong 1} & (4) \end{matrix}$ where:

-   -   i is an index number;     -   a is the index number corresponding to the first x_(i) in the         range of x the sum is being performed over;     -   b is the index number corresponding to the last x_(i) in the         range of x the sum is being performed over;     -   x_(i) is the i^(th) value of the normalized discharge x;     -   Δx is the spacing between adjacent x_(i);     -   p is the set of parameters for adjusting T_(m)(x_(i),p);     -   T_(m)(x_(i),p) is i^(th) value of the transfer function for the         m^(th) exposure size class of the reference plants;     -   PDF_((m,i)) is i^(th) value of the PDF for the m^(th) exposure         size class of the reference plants; and     -   m is the exposure size class of a plant for whom the transfer         function will be used by the digital controller for controlling         recharges from said plant to a reservoir during a second time         period.         Thus, as used herein, the term “integral” when used in the         mathematical sense means “sum” when said integral is calculated         by a digital computer from a set of data for x_(i). Similarly,         dx corresponds to Δx under the same conditions. Thus, when         executed on a digital controller, equation 4 can also be         expressed verbally in the same manner as equation 1. This         expression is:     -   A transfer function is balanced when the integral (e.g. ΣΔx) of         the product of said transfer function (e.g. T_(m)(x_(i),p)) and         the normalized distribution of normalized discharges (e.g.         PDF_((m,i)))) is about 1 when said integral is performed over a         range (e.g. i=a to b) of normalized discharges that might be         experienced by said plant during said first time period.         The process for digitally calculating the integral of equation 1         can be expressed verbally as:     -   The integral is calculated by summing all values of the products         of:         -   a) said balanced transfer function for each of said         -   b) said normalized distribution of normalized discharges for             each of said x_(i); and         -   c) said discharge increment Δx.

Digitally Determining Transfer Function Parameter Values

FIG. 2 shows the transfer function 211 after it has been balanced by adjusting the transfer function parameter values. The 1^(st) vertex has moved up on the 1^(st) Y axis so that the normalized recharges exceed the normalized discharges when the normalized discharges are below the threshold discharge. Thus, extra utility is transferred to the reservoir by the plants that fall into the lower bulk 236 of the distribution of discharges 206. This will make up for the missing normalized recharges from the plants that fall into the upper tail 238 of the distribution of discharges due to the capping of the normalized recharges at the maximum 222.

The increase in the Y value of the first vertex can be calculated by an explicit solution to equation 4, or by a numerical approximation technique, such as the “goal seek” function provided in Microsoft® Excel®. The transfer function could have been alternatively balanced by allowing the threshold discharge 224 and/or the maximum recharge 222 to the reservoir to vary. Practical considerations may dictate which parameters are varied. For example, if it is a user requirement that the 1^(st) vertex be fixed at the origin and the maximum recharge to the reservoir be fixed at 1.3, then the transfer function may be balanced by adjusting the threshold discharge to a lower value.

System for User Adjustment of the Transfer Function

A user viewing the screen 202 may be given the option of adjusting the transfer function by allowing the user to move one vertex (e.g. a 1^(st) adjustable vertex 213) and programming the digital controller to keep the transfer function balanced by solving equation 4 to modify one of the parameters of a second adjustable vertex 215. The parameter of the second adjustable vertex that the controller modifies may be the threshold discharge. This adjustability of the vertices may be implemented, for example, on a touch screen where the user touches and moves one of the adjustable vertices (e.g. item 213) and the digital controller automatically and in real time adjusts at least one of the parameters of another adjustable vertex (e.g. item 215) to keep the transfer function balanced. Thus, each plant can have its own custom transfer function without compromising the first practical consideration that the combined recharges from all of the plants to a reservoir is set equal to or greater than the combined exposures of the plants.

A person of ordinary skill will understand that the transfer function and adjustability provisions do not have to be implemented as a graph. Any suitable means for receiving data from a human may be used. These may include one or more of:

-   -   a) an optical scanner;     -   b) a keyboard;     -   c) a touch screen; or     -   d) a voice recognition system.         Any suitable means for communicating to a human may be used,         such as one or more of:     -   a) a screen;     -   b) a printer; or     -   c) a synthesized voice.         For example, a table of recharges versus discharges for a         balanced transfer function for a given plant may be presented on         a screen or printed out on paper. Input for changing the         parameters may be received from a keyboard.

Any number of practical constraints may be applied to the solution of equation 4. One of said practical constraints may be that the X values of the vertices be constrained to be equal to one of the values x_(i) of the normalized distribution of normalized discharges 206. This will simplify the computational steps to solve equation 4 since there will be no need to write code to extrapolate values of the transfer function between values of x_(i).

It may be computationally efficient to store a balanced transfer function as a set of discrete normalized recharges (e.g. T_(m)(x_(i),p)), versus normalized discharges x_(i). When the normalized value of the measured quantity of discharges is a value between two adjacent values of the discrete normalized discharges x_(i), then linear interpolation can be used to determine the quantity of recharges. The interpolation is based on the normalized value of the measured quantity of discharges and the adjacent discrete normalized discharges that bracket the normalized measured discharge.

Base Functions and Trim Functions

Transfer functions with three or more linear sections may be desirable in certain situations. For example, a transfer function with a first relatively steep linear section, followed by a second more shallow linear section, followed by a third horizontally flat linear section may provide differing incentives to a plant to minimize its exposure to adverse events. The first relatively steep linear section would provide a large incentive to maintain a plant with a near perfect record of no discharges. The second linear section would provide a modest incentive for the plant to have reduced discharges even if the record of the plant is not perfect. The third linear section would provide reassurance to the plant that the required recharges would be capped even if very large discharges occurred despite the plant's best efforts. Adjusting the transfer function to keep it balanced, however, for all normalized distributions of normalized discharges can be difficult when there are three or more linear sections. There is a plurality of independent parameters (e.g. the X and Y values of the vertices) that can be adjusted as the normalized distribution of normalized discharges changes from one exposure size class to another. Furthermore, there is ambiguity as to which parameters should be modified to keep the transfer function balanced as a user adjusts one or more of the vertices when making a customized transfer function. These difficulties can be addressed by reducing the number of dependent parameters p to a single parameter which can be used for all discharges and all user modifications.

FIG. 3 shows a method for reducing the number of dependent parameters to 1 for transfer functions with any number of linear sections. FIG. 3 shows a graph 300 presented on screen 202 of a balanced sectionally linear transfer function 320 with three linear sections. The balanced transfer function comprises a 1^(st) vertex 322, 2^(nd) vertex 324, and 3^(rd) vertex 326. The 1^(st) vertex is at the origin. The transfer function is capped at a maximum 222 at the 3^(rd) vertex 326 for all values of normalized discharge above the threshold discharge 224.

The balanced transfer function was created by summing a base function 303 plus a scaled trim function 302. The base function in this example is piecewise linear function. The trim function is scaled by a trim multiplier 312. In this example, the base function is equal to the unbalanced transfer function 204 of FIG. 2. Any base function, however, can be used subject to the practical considerations discussed above. The idea behind a base function is that it will have the general characteristics of the desired balanced transfer function. The same base function can be used for all plants. The idea behind the trim function is that it provides an adjustment to the base function so that the balanced trim function is, in fact, balanced. The trim multiplier is the single parameter (e.g. p) that is adjusted for balancing equation 1 or 4.

In this example, the trim function has positive values between the origin and the threshold discharge. The trim function has a first vertex 304, a second vertex 306 and a third vertex 308. The first vertex of the trim function is at the origin. The second vertex is at a positive X value and Y value. The third vertex has an X value equal to the threshold discharge 224 and a Y value of zero. In this example, the trim function is piecewise linear. Any trim function can be used. If the base function is under balanced (i.e. not enough recharges across all plants), then the trim function should have at least some positive values between the origin and the threshold discharge. The values of the trim function above the threshold discharge may be about zero. They can also be negative. If the trim function has positive values above the threshold discharge, then the threshold discharge can be redefined to be the largest X value of the trim function for which all values of the trim function are less than or about equal to zero.

In order to balance the transfer function for a given normalized distribution of normalized discharges, the trim multiplier is adjusted using the method described with reference to equation 4 above. The process can be repeated for the normalized distributions of normalized discharges associated with different exposure size classes.

Balanced Transfer Function with Extended Slope Base Function

FIG. 4 shows a graph 400 displayed on the screen 202 of a balanced transfer function 440 constructed from an extended slope base function 402. A scaled asymptotic trim function 420 is added to the extended slope base function to balance it. The extended slope base function comprises:

-   -   a) a first vertex 404 followed by a first linear section 406         with a first positive slope;     -   b) a second vertex 408 followed by a second linear section 412         with a second positive slope wherein:         -   i) said second vertex connects said first linear section to             said second linear section; and         -   ii) said second slope is less than said first slope (hence             the base function is “extended”); and     -   c) a third vertex 414 followed by a third linear section 416         with a third slope wherein:         -   i) said third vertex connects said second linear section to             said third linear section; and         -   ii) said third slope is about zero or exactly zero.             The threshold discharge 418 is set to the X value of the             3^(rd) vertex of the base function. The maximum recharges             419 is capped at the Y value of the 3^(rd) vertex. The Y             value of the 3^(rd) vertex is about 1.3 in this example.

As discussed above, a utility of the base function is to illustrate to a user the general features what will ultimately be in the balanced transfer function 440. In this example, the user will observe that most of the time, a plant in the exposure size class of the normalized distribution 206 of normalized discharges will have normalized discharges in the first linear section with a relatively steep slope. Thus, there is a strong incentive to manage the plant to minimize the discharges during a first time period since there will be reduced recharges required during a second time period. The second linear section with the extended slope will provide a reduced but meaningful incentive to continue to manage a plant to reduce discharges even if the discharges experienced initially during a first time period are larger than what is typical. The third linear section insures that the recharges required during the second time period are capped at the maximum 419 even if the normalized discharges during the first time period are very large.

The extended slope base function also has utility in terms of improving the performance of the plant. Plants, such as power generation facilities, can be described by performance curves where the efficiency of the plant is a function of the output/load of the plant. There is commonly a maximum in the performance curve at an optimal output of the plant. If the output is below or above the optimum, the efficiency of the plant falls off. For example, with a windmill, as the load is increased from zero, the efficiency first increases, then reaches a maximum and then falls off. This is related to the aerodynamic design of the windmill's vanes. With an extended slope base function, the maximum recharges (i.e. the load) is pushed out to a higher threshold discharge where the probability of the plant reaching that higher threshold is very low. Thus, the plant is more likely to operate near its optimum efficiency for generating recharges in any given time period. Similarly, by increasing the Y value of the 1^(st) vertex of the base function, the low end of the normalized recharges is similarly moved closer to the optimum of the plant's performance curve. Different types of plants (e.g. solar arrays, gas fired generators, etc.) may have different performance curves. Thus, additional linear sections may be introduced into the base function or the trim function to give a balanced transfer function that has on average optimal performance for a given plant depending upon the normalized distribution of normalized recharges.

An asymptotic trim function is designed to increase the recharges required from plants with discharges below the threshold discharge 418 but without grossly changing the nature of the balanced transfer function relative to the base function. The asymptotic trim function 420 in FIG. 4 also introduces a small but significant extra steep linear section to the balanced trim function for very low normalized discharges. This can be thought of as a “perfect record incentive” 441. The trim function achieves these design goals by having a first vertex 422 at the origin and a second vertex 424 near the origin with a relatively high Y value. The subsequent 3^(rd) vertex 426, 4^(th) vertex 428, 5^(th) vertex 432 and 6^(th) vertex 433 are all progressively smaller. This spreads out the collection of extra recharges over most of the discharges. The 6^(th) vertex is at the threshold discharge 418 and has a Y value of zero.

Different plants belonging to different size classes will have different normalized distributions of normalized discharges. The users responsible for each of the plants, however, can be presented with the same base function and trim function. Once the base functions are balanced with the scaled trim functions, the balanced transfer functions will have the same general characteristics as the common base function and trim function but with differences in details depending upon differences in the trim multipliers 442. Distributions with very long tails, for example, might require larger trim multipliers to collect more recharges from the plants with normalized discharges below the threshold discharge.

Example 1

A wind farm comprising a plurality of windmill generators is connected by an electric grid to customers who consume electricity, and a reservoir system for storing electric power as elevated water. Each windmill is a plant. Electricity is a utility. The reservoir system is a reservoir for the utility. The reservoir system comprises an upper water reservoir, a lower water reservoir, an electric pump for pumping water from the lower reservoir to the upper reservoir, and a water turbine generator for generating electricity from water flowing from the upper reservoir to the lower reservoir. A digital controller is provided to control the flow of water between the reservoirs.

The digital controller monitors the windmills to sense downtime due to one or more adverse events. An adverse event might be a bird strike that damages a blade of a windmill. Upon sensing downtime in a first windmill, the digital controller releases water from the upper reservoir to the lower reservoir. Electric power is produced by the water turbine generator and provided to the grid on behalf of the first windmill. A water release due to an adverse event occurring to a windmill is a discharge. The digital controller receives a signal from an anemometer mounted on the first windmill to determine how much power would have been produced by the windmill had the windmill been operational. The size of the discharge is scaled accordingly. An operator must also make a log entry into the digital controller to verify that the downtime is due to an adverse event. If the windmill stops simply due to a loss of local wind, then no discharge is made by the controller.

At the end of a first time period, the digital controller sums up all of the discharges for the first windmill. The digital controller then executes the balanced transfer function 440 of FIG. 4 to determine how much water should be pumped from the lower reservoir to the upper reservoir on behalf of the first windmill during a second time period. The water pumped during the second time period is a recharge. The digital controller then diverts electric power from the grid to the water pump on behalf of the first windmill in accordance with the recharge determined by the balanced transfer function.

The operator of the first windmill recognizes that bird strikes can be avoided if ultrasonic speakers are installed on the windmill to cause birds to avoid flying near the fan blades. The operator uses the balanced transfer function and the normalized distribution of normalized discharges for windmills in the first windmill's exposure size class to determine that the cost of the ultrasonic speakers will be paid back in a reasonable amount of time. The savings in required recharges resulting from lower discharges are due to fewer bird strikes to the fan blades. The ultrasonic speakers are installed and the discharges are reduced.

Example 2

Maintenance workers in the wind farm are subject to on-the-job injuries due to the repair of fan blades damaged by bird strikes. The workers are covered by a retrospective workers' compensation insurance policy provided by an insurance company. During a first time period, the total cost of the workers' medical expenses and lost time are summed up to provide total workers' compensation claims. The wind farm is a plant. Benefits paid to cover workers' compensation claims are discharges.

The claims are paid from a monetary reserve. The money is a utility. The monetary reserve is a reservoir of the utility. The claims are paid by an automated system after receiving input from an insurance adjuster. The automated system is a digital controller.

At the end of a first time period, the total claims are divided by the average claims of a plurality of other wind farms of similar size and employment to give normalized discharges. The plurality of other wind farms are reference plants. The average of the claims of the other wind farms is the exposure size of the wind farm.

The automated system uses the transfer function 440 of FIG. 4 to determine the normalized recharges required from the wind farm during a second time period. The normalized recharges are multiplied by the exposure size of the wind farm to give the recharges. The recharges are a retrospective premium required from the wind farm during the second time period. The automated system bills the wind farm for the recharges and the recharges received from the wind farm are used to replenish the monetary reserve.

Example 3

The first windmill is hit by a tornado causing a long duration downtime. The long duration downtime causes a long duration discharge that is initiated during a first time period and extends beyond the end of the first time period. The discharges that extend beyond the end of the first time period are referred to herein as the “tail”.

In order to determine the total quantity of recharges required from the plant during the second time period, the digital controller must project what the future discharges will be for the tail (i.e. the projected quantity of discharges) and add that to the measured discharges that have occurred during the first time period to give a total quantity of discharges for the first time period. The total quantity of discharges is then normalized. The total quantity of normalized discharges is then used with the balanced transfer function to determine the total quantity of normalized recharges. The total quantity of recharges is then determined from the total quantity of normalized recharges by multiplying it by the exposure of the plant.

A digital controller directed to controlling recharges of a utility from a plant to a reservoir via a grid during a second time period may comprise:

-   -   a) a sensor adapted to receive data about one or more discharges         from said reservoir to said plant initiated during a first time         period wherein said discharges of said utility to said plant are         in response to random adverse events that either increase the         demand of said utility from said plant or reduce the capacity of         said plant to produce said utility;     -   b) an output device adapted to control said recharges from said         plant to said reservoir;     -   c) a microprocessor adapted to process data; and     -   d) a permanent memory comprising computer readable instructions         to cause said microprocessor to physically carry out the steps:         -   i) read in an exposure of said plant wherein said exposure             of said plant is an estimate of the expected total quantity             of discharges from said reservoir to said plant initiated             over a standard time period;         -   ii) determine an exposure size class of said plant wherein             said exposure size class spans a range of exposures;         -   iii) read in a balanced transfer function such that the             integral of the product of said balanced transfer function             and a normalized distribution of normalized discharges for             reference plants in said exposure size class of said plant             is about 1 when said integral is performed over a range of             normalized discharges that might be experienced by said             plant during said first time period;         -   iv) receive via said sensor by the end of said first time             period, a measured quantity of discharges from said             reservoir to said plant that were initiated during said             first time period;         -   v) forecast a projected quantity of discharges from said             reservoir to said plant occurring after the end of said             first time period for said discharges initiated during said             first time period;         -   vi) determine a total quantity of discharges initiated             during said first time period, said total quantity of             discharges being equal to said measured quantity of             discharges plus said projected quantity of discharges;         -   vii) determine using said balanced transfer function and             said total quantity of discharges, a total quantity of             recharges from said plant to said reservoir during said             second time period; and         -   viii) instruct said plant via said output device to provide             said total quantity of recharges from said plant to said             reservoir during said second time period.

Example 4

FIG. 6 shows a graph 600 of a normalized tail distribution (i.e. Tail PDF 606) of long duration discharges initiating during a first time period and extending beyond the end of said first time period. The graph is displayed on a screen 202 to a user. The tail distribution is offset 602 by the measured normalized discharges from the reservoir to the plant during the first time period.

The tail distribution has an indicated average value (item 614). The average value of the tail distribution less the measured normalized discharges is one estimate of the projected quantity of normalized discharges 604. If there are multiple long duration discharges initiated during the first time period, then the tail distribution for all of the long duration discharges can be estimated from the sum of the individual tail distributions of each of the individual long duration discharges.

Tail distributions can be determined from historical data of similar long duration discharges. See, for example, Faulstich et al., “Wind turbine downtime and its importance for offshore development”, Wind Energy 2010. Said reference is incorporated herein by reference. Specific reference is made to FIG. 6 which is a distribution of downtime (i.e. “share of failures” versus “downtime”). Downtime is caused by adverse events. If said wind turbines were served by the digital controllers described herein, said adverse events would result in discharges to make up for the power not generated during said downtime. Thus, the distribution of downtime that extends past a first time period (e.g. 10 days) corresponds to a tail distribution.

FIG. 6 also comprises the balanced transfer function 440. Any balanced transfer function can be used. One method of determining the total quantity of recharges from the plant to the reservoir during the second time period is to use the balanced transfer function with the value of the average of the tail distribution. This gives a total quantity of normalized recharges 618 based on the average of the tail. The total quantity of recharges can be determined from the total quantity of normalized recharges by multiplying it by the exposure of the plant.

Alternatively, the total quantity of normalized recharges can be calculated based on a Monte Carlo simulation. In a Monte Carlo simulation, a plurality of simulated normalized discharges 616 are randomly selected with a probability of each selection determined by the tail distribution 606. The simulated normalized discharges are then used to determine a plurality of simulated normalized recharges 610 using the balanced transfer function 440. The average 612 of the simulated normalized recharges is then the total quantity of normalized recharges required from the plant during the second time period. In this example, due to the nonlinear structure of the balanced transfer function, the total quantity of normalized recharges 612 determined from the Monte Carlo simulation is less (and hence more economic) than the total quantity of normalized recharges 618 determined from the average of the tail distribution. Thus, the method of using the Monte Carlo simulation in this application improves the performance of the digital controller. The total quantity of required recharges is determined from the product of the total quantity of normalized recharges and the exposure size of the plant.

In an alternative embodiment, numerical or analytic integration of the product of the tail distribution and the balanced transfer function is used to determine the total quantity of normalized recharges. An advantage of the Monte Carlo based method, however, is that the actual reference data used to construct the tail distribution can be used instead of an analytic or smoothed form of tail distribution.

CONCLUSION

While the disclosure has been described with reference to one or more different exemplary embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the scope of the disclosure. In addition, many modifications may be made to adapt to a particular situation without departing from the essential scope or teachings thereof. Therefore, it is intended that the disclosure not be limited to the particular embodiment disclosed as the best mode contemplated for carrying out this invention. 

We claim:
 1. A digital controller directed to controlling recharges of a utility from a plant to a reservoir via a grid during a second time period, said digital controller comprising: a) a sensor adapted to receive data about one or more discharges from said reservoir to said plant wherein: i) said discharges are initiated during a first time period; and ii) said discharges are in response to random adverse events that either increase a demand of said utility from said plant or reduce the capacity of said plant to produce said utility; b) an output device adapted to control said recharges from said plant to said reservoir; c) a microprocessor adapted to process data; and d) a permanent memory comprising computer readable instructions to cause said microprocessor to physically carry out the steps: i) read in an exposure of said plant wherein said exposure of said plant is an estimate of the expected total quantity of discharges from said reservoir to said plant initiated over a standard time period due to said random adverse events; ii) determine an exposure size class of said plant wherein said exposure size class spans a range of exposures; iii) read in a balanced transfer function such that an integral of a product of said balanced transfer function and a normalized distribution of normalized discharges for reference plants in said exposure size class of said plant is about 1 when said integral is performed over a range of normalized discharges that might be experienced by said plant during said first time period; iv) receive via said sensor by the end of said first time period, a measured quantity of discharges from said reservoir to said plant that were initiated during said first time period wherein: (1) said discharges from said reservoir to said plant initiated during said first time period comprise a long duration discharge that begins during said first time period and continues past the end of said first time period; and (2) said long duration discharge comprises a tail discharge occurring after the end of said first time period, said tail being described by a tail distribution; v) determine using a Monte Carlo simulation, a total quantity of recharges from said plant to said reservoir during said second time period, said Monte Carlo simulation comprising the steps: (1) forecast using said tail distribution, a projected quantity of discharges from said reservoir to said plant occurring after the end of said first time period for said long duration discharge; (2) determine a simulated total quantity of discharges initiated during said first time period, said simulated total quantity of discharges being equal to said measured quantity of discharges plus said projected quantity of discharges; (3) determine using said balanced transfer function and said simulated total quantity of discharges, a simulated total quantity of recharges from said plant to said reservoir during said second time period; (4) repeat said steps (1) to (3) for n times to produce a set of n simulated total quantities of recharges; and (5) set said total quantity of recharges equal to an average of said n simulated total quantities of recharges; and vi) instruct said plant via said output device to provide said total quantity of recharges from said plant to said reservoir during said second time period.
 2. The digital controller of claim 1 wherein said balanced transfer function is nonlinear.
 3. The digital controller of claim 1 wherein: a) said plant comprises one or more of: i) an electrical plant; ii) a water supply plant; or iii) a production plant comprising employees; b) said utility comprises one or more of: i) electrical energy; ii) water; or iii) monetary funds; c) said grid comprises one or more of: i) an electrical grid; ii) a hydraulic pipeline; or iii) a monetary transfer system; d) said reservoir is one or more of: i) an energy storage device; ii) a water storage device; or iii) a monetary reserve; e) said random adverse events are one or more of: i) a loss of electric power generating capacity due to wind damage to said plant; ii) an increase in water demand from said plant due to drought; or iii) a loss of labor due to an on-the-job injury of one of said employees in said production plant; and f) said discharges from said reservoir to said plant are one or more of: i) sufficient electric power to make up for said lost electric power generating capacity; ii) sufficient water to make up for said increase in water demand; or iii) sufficient monetary funds to make up for the medical costs and lost time costs of said injured employee.
 4. The digital controller of claim 3 wherein said device adapted to communicate to a human comprises one or more of: a) a screen; b) a printer; or c) a device to produce a synthesized voice.
 5. The digital controller of claim 1 wherein: a) said sensor adapted to receive data about said discharges from said reservoir to said plant comprises a device adapted to receive data from a human; and b) said output device adapted to control said recharges from said plant to said reservoir comprises a device adapted to communicate to a human.
 6. The digital controller of claim 5 wherein said device adapted to receive data from a human comprises one or more of: a) an optical scanner; b) a keyboard; c) a touch screen; or d) a voice recognition system.
 7. The digital controller of claim 1 wherein said utility is transferred between said plant and said reservoir by physical transfer or by virtual allocation.
 8. The digital controller of claim 1 wherein said recharges make up for leakage in said reservoir and losses in said grid. 